<?php

namespace app\api\controller;

use think\Controller;
use think\Request;
use services\payment\Balance;

class User extends Api
{
    protected $beforeActionList = [
        'checkToken' =>  ['except'=>'index']
    ];

    public function getUserInfo()
    {
        return $this->getLoginUserInfo();
    }
    public function getIndex()
    {

    }
    public function read($token)
    {
        if ($this->checkSign(array_merge(['sign' => $this->request->header('sign')],$this->request->get()))) {
            return $token;
        }else{
            return $this->request->get();
        }
    }
}
